package com.peak.spring.boot.api.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.NoRepositoryBean;

/**
 * 集成了JPA两大接口，默认ID的类型为Long
 * 
 * @author Haley Gao
 *
 * @param <T>
 */
@NoRepositoryBean
public interface BaseRepository<T> extends JpaRepository<T, Number>, JpaSpecificationExecutor<T> {
	
	Class<T> getEntityClass();
}
